package com.jn.gsondemo.entity;

public class Medal {
    private final String rank;
    private final String countryName;
    private final String gold;
    private final String silver;
    private final String bronze;

    public Medal(String rank, String countryName, String gold, String silver, String bronze) {
        this.rank = rank;
        this.countryName = countryName;
        this.gold = gold;
        this.silver = silver;
        this.bronze = bronze;
    }

    public String getRank() {
        return rank;
    }

    public String getCountryName() {
        return countryName;
    }

    public String getGold() {
        return gold;
    }

    public String getSilver() {
        return silver;
    }

    public String getBronze() {
        return bronze;
    }

    @Override
    public String toString() {
        return "Medal{" +
                "rank='" + rank + '\'' +
                ", countryName='" + countryName + '\'' +
                ", gold='" + gold + '\'' +
                ", silver='" + silver + '\'' +
                ", bronze='" + bronze + '\'' +
                '}';
    }
}